package com.hxf.service.meal.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.hxf.dto.AreaDto;
import com.hxf.exception.DaoLevelException;
import com.hxf.exception.ServiceException;
import com.hxf.service.base.impl.BaseServiceImpl;
import com.hxf.service.meal.AreaService;

@Repository("areaService")
public class AreaServiceImpl extends BaseServiceImpl implements AreaService {

	@Override
	public List<AreaDto> findByParentCode(String parentCode) throws ServiceException {
		 try {
			return super.daoFacade.getAreaDao().findByParentCode(parentCode);
		} catch (DaoLevelException e) {
			throw new ServiceException(e.getMessage(), e);
		} 
	}

}
